﻿@{
    Layout = "~/Views/Shared/_Default.cshtml";
    ViewBag.PageTitle = T(Res.Name("Title"));
}

<div class="box">
    <section>
        <div class="hint">
            <p>
                @T(Res.Name("Hint"))
                <br/>
                <i>@T(Res.Name("Quota"), Svc.DataSize((decimal)JDM.Decimal(Svc.FileOwner.Quota)), Svc.DataSize((decimal)JDM.Decimal(Svc.FileOwner.QuotaUsage)))</i>
            </p>
        </div>
    </section>
    <section>
    @{
        Html.RenderPartial("_Upload");
    }
    </section>
    <section>
    @if(Model != null)
    {
        Html.RenderPartial("_Index");
        Html.RenderPartial("_Pager", new ViewDataDictionary 
        { 
            { "PageNum", 6 },
            { "PageCount", Math.Ceiling(JDM.Double(Model.TotalCount) / 30) }, 
            { "PageIndex", Request.QueryParam("page", 0) },
            { "PageParam", "page" },
            { "PageSize", 30 },
            { "PageRoute", Loc.Act("Index").Localized() } 
        });
    }
    </section>
</div>
